package com.kkb.controller;


import com.kkb.service.RoleResourceService;
import com.kkb.vo.ResultVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("role_resource")
@ResponseBody
public class RoleResourceController {

    @Resource
    RoleResourceService service;


    @RequestMapping("role/{id}")
    public ResultVO getResources(@PathVariable int id){
        return new ResultVO(service.selectById(id));
    }
}
